package com.qn.domian;


import java.sql.Date;

public class User {

  private int uId; //用户编号
  private String userName; //用户姓名
  private String userPassword; //用户密码
  private String userEmail; //用户Email
  private Date userBirthday; //用户生日
  private String userSex; //用户性别
  private int userClass; //用户等级
  private String userStatement; //用户个人说明
  private String userHeadPortrait; //用户头像
  private int pId; //用户作品ID
  private int collectId; //用户收藏ID
  private String userAccount; //用户账号


  public User() {
  }

  public User(int uId, String userName, String userPassword, String userEmail, Date userBirthday, String userSex, int userClass, String userStatement, String userHeadPortrait, int pId, int collectId, String userAccount) {
    this.uId = uId;
    this.userName = userName;
    this.userPassword = userPassword;
    this.userEmail = userEmail;
    this.userBirthday = userBirthday;
    this.userSex = userSex;
    this.userClass = userClass;
    this.userStatement = userStatement;
    this.userHeadPortrait = userHeadPortrait;
    this.pId = pId;
    this.collectId = collectId;
    this.userAccount = userAccount;
  }

  public int getuId() {
    return uId;
  }

  public void setuId(int uId) {
    this.uId = uId;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserPassword() {
    return userPassword;
  }

  public void setUserPassword(String userPassword) {
    this.userPassword = userPassword;
  }

  public String getUserEmail() {
    return userEmail;
  }

  public void setUserEmail(String userEmail) {
    this.userEmail = userEmail;
  }

  public Date getUserBirthday() {
    return userBirthday;
  }

  public void setUserBirthday(Date userBirthday) {
    this.userBirthday = userBirthday;
  }

  public String getUserSex() {
    return userSex;
  }

  public void setUserSex(String userSex) {
    this.userSex = userSex;
  }

  public int getUserClass() {
    return userClass;
  }

  public void setUserClass(int userClass) {
    this.userClass = userClass;
  }

  public String getUserStatement() {
    return userStatement;
  }

  public void setUserStatement(String userStatement) {
    this.userStatement = userStatement;
  }

  public String getUserHeadPortrait() {
    return userHeadPortrait;
  }

  public void setUserHeadPortrait(String userHeadPortrait) {
    this.userHeadPortrait = userHeadPortrait;
  }

  public int getpId() {
    return pId;
  }

  public void setpId(int pId) {
    this.pId = pId;
  }

  public int getCollectId() {
    return collectId;
  }

  public void setCollectId(int collectId) {
    this.collectId = collectId;
  }

  public String getUserAccount() {
    return userAccount;
  }

  public void setUserAccount(String userAccount) {
    this.userAccount = userAccount;
  }

  @Override
  public String toString() {
    return "User{" +
            "uId=" + uId +
            ", userName='" + userName + '\'' +
            ", userPassword='" + userPassword + '\'' +
            ", userEmail='" + userEmail + '\'' +
            ", userBirthday=" + userBirthday +
            ", userSex='" + userSex + '\'' +
            ", userClass=" + userClass +
            ", userStatement='" + userStatement + '\'' +
            ", userHeadPortrait='" + userHeadPortrait + '\'' +
            ", pId=" + pId +
            ", collectId=" + collectId +
            ", userAccount='" + userAccount + '\'' +
            '}';
  }
}
